#ifndef UTILS_H
#define UTILS_H

#include"constant.h"

class Utils{
public:
    static QMap<int,QString> readMap(QString filePath);
    static void writeMap(QString filePath,QMap<int,QString>& map);

    static void updateSeq(QString dir,QTreeWidgetItem* parent);
    static QStringList initialSeq(QString dir,int type);
    static QStringList getSeq(QString fileName);
    static void writeSeq(QString fileName,QStringList strlist);
    static void deleteFile(QString dirPath,QString fileName);

    static void expandTreeItem(QTreeWidgetItem* item);
    static void packupTreeItem(QTreeWidgetItem* item);
};

#endif // UTILS_H
